package com.lianzai.system.controller;

import com.lianzai.common.annotation.NoLoginAuthRequired;
import com.lianzai.common.config.Constant;
import com.lianzai.common.controller.BaseController;
import com.lianzai.common.domain.Tree;
import com.lianzai.common.utils.QueryDO;
import com.lianzai.common.utils.R;
import com.lianzai.system.domain.DeptDO;
import com.lianzai.system.domain.IndustryDO;
import com.lianzai.system.service.DeptService;
import com.lianzai.system.service.IndustryService;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/system/industry")
public class IndustryController extends BaseController {
	@Autowired
	private IndustryService industryService;

	@ApiOperation(value="获取行业列表", notes="")
	@ResponseBody
	@NoLoginAuthRequired
	@PostMapping("/list")
	public List<IndustryDO> list(@RequestBody QueryDO queryDO) {
		List<IndustryDO> industryList = industryService.list(queryDO);
		return industryList;
	}

}
